package com.you.open.api.demo;

import com.you.open.api.demo.config.ApiFrameworkConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Description
 * @Author yough
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/1/13
 */
@SpringBootApplication
public class OpenApiDemoMain {
    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(OpenApiDemoMain.class, args);
        ApiFrameworkConfig apiFrameworkConfig = (ApiFrameworkConfig) context.getBean("apiFrameworkConfig");
        String sysNo = "2007";
        String jarFilePath = "F:\\Idea_Workspace\\Java-Senior-Projects\\Java-Practise-Projects\\simple-demo-api\\target\\simple-demo-api-1.0-SNAPSHOT.jar";
        apiFrameworkConfig.parseJarFile(sysNo, jarFilePath);
    }
}
